<?xml version="1.0" encoding="UTF-8"?>
<srv:container xmlns="http://symfony.com/schema/dic/security"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:srv="http://symfony.com/schema/dic/services"
    xsi:schemaLocation="http://symfony.com/schema/dic/services
        https://symfony.com/schema/dic/services/services-1.0.xsd
        http://symfony.com/schema/dic/security
        https://symfony.com/schema/dic/security/security-1.0.xsd">

    <config>
        <firewall name="main">
            <required-badge>Symfony\Component\Security\Http\Authenticator\Passport\Badge\CsrfTokenBadge</required-badge>
            <required-badge>RememberMeBadge</required-badge>
            <login-link check-route="login_check"
                check-post-only="true"
                max-uses="1"
                lifetime="3600"
                used-link-cache="cache.redis"
            >
                <signature-property>id</signature-property>
                <signature-property>email</signature-property>
            </login-link>
            <login-throttling limiter="app.rate_limiter"/>
        </firewall>
    </config>
</srv:container>
